package com.maiyawx.mall.util;

/**
 * 用户信息工具类
 */
public class UserInfoUtil {

    public static String getSessionKey = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";

    /**
     * 拼接获取session key url
     * @param appid
     * @param secret
     * @param code
     * @return
     */
    public static String getSessionKey(String appid, String secret, String code) {
        return String.format(getSessionKey, appid, secret, code);
    }
}
